package net.huashitong.ssydt.provider.exam.service;


import net.huashitong.ssydt.exam.entity.SsExamQuestionOption;
import net.huashitong.ssydt.provider.exam.mapper.SsExamQuestionOptionMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author hemj
 * @version 2017/8/25
 */
@Service
@Transactional
public class SsExamQuestionOptionServiceImpl implements SsExamQuestionOptionService {

    private SsExamQuestionOptionMapper ssExamQuestionOptionMapper;

    @Autowired
    public SsExamQuestionOptionServiceImpl(SsExamQuestionOptionMapper ssExamQuestionOptionMapper) {
        this.ssExamQuestionOptionMapper = ssExamQuestionOptionMapper;
    }

    @Override
    public void multipleInsert(List<SsExamQuestionOption> list) {
        ssExamQuestionOptionMapper.multipleInsert(list);
    }

    @Override
    public void deleteByQuestionId(Long id) {
        ssExamQuestionOptionMapper.deleteByQuestionId(id);
    }

    @Override
    public List<SsExamQuestionOption> listByQuestionId(Long id) {
        return ssExamQuestionOptionMapper.listByQuestionId(id);
    }
}
